package multithread;

public class TicketRunnable implements Runnable{
    private int tickets=10;

    public int hhhaaa(){
        System.out.println("hh");
        return 11;
    }

    @Override
    public void run() {
        while(tickets>0){
            System.out.println(Thread.currentThread().getName()+"售机票"+tickets--+"号");
        }

    }
}
